package com.intelligent.eayon.message;

import com.intelligent.eayon.utils.ByteUtils;
import com.intelligent.ispc.common.dto.AbstractValueObject;

public class Attr extends AbstractValueObject {

    private byte[] eqlg = new byte[4];
    private byte[] eqid;

    public byte[] getEqlg() {
        return eqlg;
    }

    public void setEqlg(byte[] eqlg) {
        this.eqlg = eqlg;
    }

    public byte[] getEqid() {
        return eqid;
    }

    public void setEqid(byte[] eqid) {
        this.eqid = eqid;
    }

    /**
     * length
     * @return
     */
    public int length() {
        return 16 + ByteUtils.bytes2int(eqlg);
    }
}
